#include "stdafx.h"
#include "defines.h"


#include "cNotesFolderInfo.h"
IMPLEMENT_SERIAL( cNotesFolderInfo, CObject, 1 )

cNotesFolderInfo::cNotesFolderInfo()
{
	b_Transfer=FALSE;
	m_wType=DOCFOLDER;
}

cNotesFolderInfo::cNotesFolderInfo(const cNotesFolderInfo& source)
{
   assign(source);
}

cNotesFolderInfo& cNotesFolderInfo::operator=(const cNotesFolderInfo& right)
{
   if (this != &right)
   {
      assign(right);
   }

   return (*this);
}

cNotesFolderInfo::~cNotesFolderInfo()
{
   // nothing to do yet
}

void cNotesFolderInfo::assign(const cNotesFolderInfo& source)
{
    m_strNotesName=source.m_strNotesName;
	m_strFolderDisplayName=source.m_strFolderDisplayName;
	m_wType=source.m_wType;
	b_Transfer=source.m_wType;
	m_strFolderHierarchicalDisplayName=source.m_strFolderHierarchicalDisplayName;

}
void cNotesFolderInfo::Serialize(CArchive &ar)
{

   CObject::Serialize( ar );    // Always call base class Serialize.
   // Serialize dynamic members and other raw data
   if ( ar.IsStoring() )
   {
      ar << m_strNotesName;ar << m_strFolderDisplayName;
	  ar << m_wType;
	  ar << b_Transfer;
	  ar << m_strFolderHierarchicalDisplayName;


   }
   else
   {
      ar >> m_strNotesName;
	  ar >> m_strFolderDisplayName;
	  ar >> m_wType;
	  ar >> b_Transfer;
	  ar >> m_strFolderHierarchicalDisplayName;
   }

}
